
const fruiterreducer = (state=[],action) => {

    switch(action.type){
        case 'GET_FRUITER':
            console.log(action.fruiterlist)
            return action.fruiterlist
        case 'DEL_BUSINESS':
            let arr
            arr = [...state].filter((item) => {
                return item.business_id != action.index
            })
            return arr
        default:
            return state;
    }
}

export default fruiterreducer;